package com.xcdh.ittools.mapper;

import com.api.ittools.entity.ITToolPage;
import com.api.ittools.entity.ToolDict;
import com.api.ittools.vo.ElDictTreeVo;
import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.api.ittools.entity.ToolDictItem;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@DS("slave")
public interface ToolDictMapper extends BaseMapper<ToolDict> {

    IPage<ElDictTreeVo> dictTreeList(@Param("page") ITToolPage<ToolDictItem> page ,
                                     @Param("query") QueryWrapper<ToolDictItem> query) ;
}
